#!/usr/bin/python
import sys

from xmlrpclib import ServerProxy

try:
    server = ServerProxy("http://open-tran.eu/RPC2")

    for sugg in server.suggest(sys.argv[1], sys.argv[2]):
        print sugg
except:
    sys.exit(2);